package com.v2.k31;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * 测试循环依赖
 * Circular depends-on relationship between 'userService' and 'orderService'
 */
public class Test {

	public static void main(String[] args) {

		AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(AppConfig.class);

		System.out.println(applicationContext.getBean("userService"));


	}

}
